import java.util.*;
import javax.swing.*;
import java.awt.*;

public class GrafuriApp extends JFrame
{
	private GrafOrientat graf;
	
	public GrafuriApp(GrafOrientat graf)
	{
		super("Grafuri Orientate");
		setSize(1000, 600);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
		this.graf=graf;
		setLayout(new BorderLayout());
		
		MainPanel mainPanel=new MainPanel(graf);
		add(BorderLayout.CENTER, mainPanel);
		
		SouthPanel southPanel=new SouthPanel(graf);
		add(BorderLayout.SOUTH, southPanel);
		
		MenuBar meniu = new MenuBar(graf);
		setJMenuBar(meniu.getMenuBar());
		
	}
	
	public static void main(String[] args)
	{
		GrafOrientat graf=new GrafOrientat();
		GrafuriApp app=new GrafuriApp(graf);
	}
	
	/*public static void main(String[] args)
	{
		
		GrafOrientat graf=new GrafOrientat();
		graf.addVarf();
		graf.addVarf();
		graf.addVarf();
		graf.addArc(0, 2);
		graf.addArc(2, 1);
		graf.addArc(2, 0);
		graf.addArc(2, 0);
		
		for(int i=0;i<graf.getNrVarfuri();i++)
		{
			System.out.print("Nodul "+i+": ");
			for(int x:graf.getListaAd(i))
				System.out.print(x+" ");
			System.out.println();
				
		}
		
		
		ArrayList<Integer> lista=new ArrayList<Integer>();
		lista.add(3);
		lista.add(5);
		lista.add(2);
		for(int i=0;i<lista.size();i++)
			System.out.print(lista.get(i)+" ");
		System.out.println();
		for(int x:lista)
			System.out.print(x+" ");
		
	}*/

}
